/*================================================================
*   Copyright (C) 2017 LiuYao. All rights reserved.
*   
*   Filename : placeholder_factory.h
*   Author : LiuYao
*   Date : 2017-12-31
*   Description : 
*
================================================================*/
#ifndef _PLACEHOLDER_FACTORY_H
#define _PLACEHOLDER_FACTORY_H

#include "../graph/node.h"
#include "../graph/placeholder.h"
#include "factory.h"

class PlaceholderFactory : public Factory {
    private:
        Shape* shape_;
        Node* hook() { return new Placeholder(*shape_); }

    public:
        PlaceholderFactory(const Shape& shape) : shape_(new Shape(shape.rows, shape.cols)) {}
        ~PlaceholderFactory();
};

#endif
